/*
 * COPYRIGHT. ShenZhen JiMi Technology Co., Ltd. 2017.
 * ALL RIGHTS RESERVED.
 *
 * No part of this publication may be reproduced, stored in a retrieval system, or transmitted,
 * on any form or by any means, electronic, mechanical, photocopying, recording, 
 * or otherwise, without the prior written permission of ShenZhen JiMi Network Technology Co., Ltd.
 *
 * Amendment History:
 * 
 * Date                   By              Description
 * -------------------    -----------     -------------------------------------------
 * 2017年12月24日    LongMin         Create the class
 * http://www.jimilab.com/
*/

package com.futuremap.ws.controller;

import javax.servlet.http.HttpServletRequest;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @FileName HomeController.java
 * @Description:
 *
 * @Date 2017年12月24日 下午10:02:16
 * @author LongMin
 * @version 1.0
 */
@Controller
@RequestMapping(value = { "/", "/doc" })
public class HomeController extends AbsController {


	@RequestMapping("")
	public String home() {
		return "forward:index.html";
	}

	@RequestMapping("sign_out.html")
	public String sign_out(HttpServletRequest request) {
		request.getSession().invalidate();
		return "redirect:/";
	}


}
